<?php
namespace Home\Controller;
use Think\Controller;
 
class TestController extends Controller{
    public function index(){
    	#调用网站首页
    	//$this->display('index');
    	$x = 100;
    	if($x == 100){
    		$this->success('条件成立',U('index/index'),2);
    	}else{
    		$this->error('条件不成立',U('index/index'),2);
    	}
    }
}